<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>New Event</title>
</head>
<body>
<h1>Create a New Event</h1>
<form action="#" th:action="@{/events}" th:object="${event}" method="post">
    <label for="name">Event Name:</label>
    <input type="text" id="name" th:field="*{name}" /><br/>
    <label for="date">Event Date (yyyy-MM-dd HH:mm):</label>
    <input type="text" id="date" th:field="*{date}" /><br/>
    <button type="submit">Create Event</button>
</form>
</body>
</html>
